import axios from "../axios";
//登录
export function login(username, password) {
  return axios.post("/admin/login", {
    username,
    password,
  });
}
//获取详情
export function getinfo() {
  return axios.post("/admin/getinfo");
}
//退出登录
export function logout() {
  return axios.post("admin/logout");
}
export function updatepassword(data) {
  return axios.post("/admin/updatepassword", data);
}
